package com.tidc.seaserverservice.service;

import com.tidc.seaservermodel.entity.Fres;
import com.tidc.seaservermodel.entity.Shop;
import com.tidc.seaservermodel.exception.TidcBadParent;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.sql.SQLException;
import java.util.Map;

/**
 * @author ：冯涛滔
 * @date ：Created in 2020/9/22 9:16
 * @description：
 * @modified By：
 * @version:
 */
public interface SupervisorShopService {
    Fres<String> addCommodity(Shop shop, Authentication authentication) throws SQLException;
    Fres<Map<Object,Object>> getShopList(String query,int pageSize,int pageNum, Authentication authentication) throws TidcBadParent;
    Fres<String> updateIsShow(Shop shop,Authentication authentication) throws SQLException, TidcBadParent;
    Fres<Shop> getShopById(int id, Authentication authentication);
}
